(function($, window){
	var sonar = {
		init : function(){
			$('.sonar_image')
				.bind(
				'scrollin',
				{ distance:400 },
				function(e){
					var image = $(e.target),
						source = image.attr('datasrc');
					image.attr(
						{
							src     : source,
							sonar   : 'true'
						}
					)
						.removeAttr('datasrc')
						.unbind('scrollin');
				}
			);
		}
	};
	sonar.init();
})(jQuery, window);